
import 'package:json_annotation/json_annotation.dart';
import 'package:reabampos/src/reabam/operation/bean/base/rb_request.dart';

//定义生成的文件 flutter pub run build_runner build --delete-conflicting-outputs
part 'request_upload_device_setting_info.g.dart';

@JsonSerializable(explicitToJson: true)
class RequestUploadDeviceSettingInfo extends RBBaseRequest{

   bool? logIn;
   String? id;
   String? lastReportingTime;
   String? companyId;
   String? companyCode;
   String? companyName;
   String? machineNo;
   String? status;
   bool? localPrint;
   bool? switchLocalPrint;
   bool? scanCodeBoxPrint;
   bool? speedCash;
   bool? productCache;
   dynamic mealTakeCodePrefix;
   dynamic mealTakeCodeStart;
   dynamic mealTakeCodeEnd;
   dynamic mealTakeCodeNum;
   String? queueNumberBoardIp;
   bool? queueNumberBoardStatus;
   String? usbScaleName;
   String? bluetoothScaleName;
   bool? multiTerminalPrintStatus;
   String? multiTerminalPrintType;
   String? multiTerminalPrintIp;
   List<PosMachinePrintersBean>? posMachinePrinters;


  RequestUploadDeviceSettingInfo(
   {
     this.logIn=false,
     this.localPrint=false,
     this.switchLocalPrint=false,
     this.scanCodeBoxPrint=false,
     this.speedCash=false,
     this.productCache=false,
     this.queueNumberBoardStatus=false,
     this.multiTerminalPrintStatus=false,
   }
      ):super();

  factory RequestUploadDeviceSettingInfo.fromJson(Map<String, dynamic> json) => _$RequestUploadDeviceSettingInfoFromJson(json);
  @override
  Map<String, dynamic> toJson() => _$RequestUploadDeviceSettingInfoToJson(this);

}

@JsonSerializable(explicitToJson: true)
class PosMachinePrintersBean {

   String? id;
   String? machineId;
   String? lineNo;
   String? printerType;
   String? ip;
   String? scene;
   String? printerName;
   String? printerId;

   PosMachinePrintersBean();


  factory PosMachinePrintersBean.fromJson(Map<String, dynamic> json) => _$PosMachinePrintersBeanFromJson(json);
  Map<String, dynamic> toJson() => _$PosMachinePrintersBeanToJson(this);

}


